package com.hyk.feign;

import com.hyk.config.auth.OAuth2FeignConfig;
import com.hyk.dto.UserBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "member-service",
            contextId = "bank",
            configuration = OAuth2FeignConfig.class,
            path = "/userBanks")
public interface UserBankFeign {

    @GetMapping("/getUserBank")
    Map<Long,UserBankDto> getUserBank(@RequestParam("ids") List<Long> ids);
}
